import request from "@/utils/request";
// 时间
export function profitByDay(data) {
  return request({
    url: "/api/Report/profitByDay",
    method: "post",
    data
  });
}
// 时间导出
export function exportProfitByDayToCsv(data) {
  return request({
    url: "/api/Report/exportProfitByDayToCsv",
    method: "post",
    data
  });
}
// 分类
export function profitByClass(data) {
  return request({
    url: "/api/Report/profitByClass",
    method: "post",
    data
  });
}
// 分类导出
export function exportProfitByClassToCsv(data) {
  return request({
    url: "/api/Report/exportProfitByClassToCsv",
    method: "post",
    data
  });
}
// 商品
export function profitByGood(data) {
  return request({
    url: "/api/Report/profitByGood",
    method: "post",
    data
  });
}
// 商品导出
export function exportProfitByGoodToCsv(data) {
  return request({
    url: "/api/Report/exportProfitByGoodToCsv",
    method: "post",
    data
  });
}
// 入库报表
export function buyInDetail(data) {
  return request({
    url: "/api/Report/buyInDetail",
    method: "post",
    data
  });
}
// 入库汇总报表
export function buyInAll(data) {
  return request({
    url: "/api/Report/buyInAll",
    method: "post",
    data
  });
}
// 销售报表
export function sell(data) {
  return request({
    url: "/api/Salereport/index",
    method: "post",
    data
  });
}
// 结算报表
export function settle(data) {
  return request({
    url: "/api/warereport/statementReport",
    method: "post",
    data
  });
}
// 调货提成报表
export function allocateprice(data) {
  return request({
    url: "/api/Report/allocateprice",
    method: "post",
    data
  });
}
// 调货提成汇总报表
export function allocatepricecollect(data) {
  return request({
    url: "/api/Report/allocatepricecollect",
    method: "post",
    data
  });
}
// 预提费/溢折值明细
export function cargoReport(data) {
  return request({
    url: "/api/warereport/cargoReport",
    method: "post",
    data
  });
}
// 预提费/溢折值汇总
export function SummaryReport(data) {
  return request({
    url: "/api/warereport/cargoSummaryReport",
    method: "post",
    data
  });
}

// 层级
export function goodsClassTree(data) {
  return request({
    url: "/api/Goods/goodsClassTree",
    method: "post",
    data
  });
}
// 导出收发存汇总
export function wmsReport(data) {
  return request({
    url: "/api/warereport/wmsReport",
    method: "post",
    data
  });
}
// 导出收发存明细
export function wmsDetailReport(data) {
  return request({
    url: "/api/warereport/wmsDetailReport",

    method: "post",
    data
  });
}
// 应付账款明细报表
export function payableReport(data) {
  return request({
    url: "/api/warereport/payableReport",

    method: "post",
    data
  });
}
// 应付账款汇总报表
export function payableAllReport(data) {
  return request({
    url: "/api/warereport/payableAllReport",
    method: "post",
    data
  });
}
// 商超分类
export function selectErpCategoryData(data) {
  return request({
    url: "/smkapi/category/selectErpCategoryData",
    method: "post",
    data
  });
}
// 销售报表新
export function salenew(data) {
  return request({
    url: "/api/Salereport/salenew",
    method: "post",
    data
  });
}
// 退货报表新
export function refundnew(data) {
  return request({
    url: "/api/Salereport/refundnew",
    method: "post",
    data
  });
}
// 销售预提费/溢折值明细
export function cargoReportsale(data) {
  return request({
    url: "/api/warereport/cargoReportsale",
    method: "post",
    data
  });
}
// 退货预提费/溢折值明细
export function cargoReportrefund(data) {
  return request({
    url: "/api/warereport/cargoReportrefund",
    method: "post",
    data
  });
}

// 退货报表(中仓自建)
export function refundnew1(data) {
  return request({
    url: "/api/Salereport/refundnew1",
    method: "post",
    data
  });
}

// 退货报表(中仓自建)
export function purchaseSummary(data) {
  return request({
    url: "/api/Warereport/purchaseSummaryList",
    method: "post",
    data
  });
}
// 商超商品销售加价报表
export function saleAddMoneyByGood(data) {
  return request({
    url: "/smkapi/report/saleAddMoneyByGood",
    method: "post",
    data
  });
}
// 商超分类销售加价报表
export function saleAddMoneyByClass(data) {
  return request({
    url: "/smkapi/report/saleAddMoneyByClass",
    method: "post",
    data
  });
}
// 商超商品退货加价报表
export function refundAddMoneyByGood(data) {
  return request({
    url: "/smkapi/report/refundAddMoneyByGood",
    method: "post",
    data
  });
}
// 商超分类退货加价报表
export function refundAddMoneyByClass(data) {
  return request({
    url: "/smkapi/report/refundAddMoneyByClass",
    method: "post",
    data
  });
}
// 商超商品调拨加价报表
export function alloAddMoneyByGood(data) {
  return request({
    url: "/smkapi/report/alloAddMoneyByGood",
    method: "post",
    data
  });
}
// 商超分类退货加价报表
export function alloAddMoneyByClass(data) {
  return request({
    url: "/smkapi/report/alloAddMoneyByClass",
    method: "post",
    data
  });
}
// 销售汇总报表（新）
export function saleSummaryNew(data) {
  return request({
    url: "/api/Salereport/saleSummaryNew",
    method: "post",
    data
  });
}
// 退货汇总报表（新）
export function refundSummaryNew(data) {
  return request({
    url: "/api/Salereport/refundSummaryNew",
    method: "post",
    data
  });
}
// 获取机构区域
export function getOrgAreaOptions(data) {
  return request({
    url: "/api/org/getOrgAreaOptions",
    method: "post",
    data
  });
}
